import Vue from 'vue'
import VueRouter from 'vue-router'
import routeConfig from './router_config'
import VueResource from 'vue-resource'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App.vue'

//样式框架ElementUI
Vue.use(ElementUI);
//加载路由中间件
Vue.use(VueRouter);
Vue.use(VueResource);
//定义路由
const router = new VueRouter({
    routes: routeConfig
});
new Vue({
    router,
    el: '#app',
    render: h => h(App)
});